export const sampleConfig = {
  /*   node: {
    size: 120,
    shape: "rect",
    label: {
      textPosition: "Top_Center",
    },
  },
  link: {
    lineType: "bezier",
    showArrow: false,
    showLabel: false,
    selected: {
      color: "245,166,35",
    },
  }, */
};

export const sampleData = {
  nodes: [
    /*
      color: hex,rgb
      colorType
      showArrow
      size:
      fontColor:
      cluster:
      setImage: url 用于自定义节点图片 const nodeShapes=['rect','circle','triangle','star','polygon','text'];
      properties:{ type: name: desc: }
      */
    {
      id: '1',
      label: '刘备',
      type: '兄',
      size: 6,
      scale: '1.8',
      color: 'rgb(120,233,133)',
      properties: { name: '刘玄德' },
    },
    {
      id: '2',
      label: '关羽',
      type: '弟',
      properties: { name: '关云长' },
    },
    {
      id: '3',
      label: '张飞',
      type: '弟',
      properties: { name: '张翼德' },
    },
    {
      id: '4',
      label: '刘禅',
      type: '子',
    },
  ],
  links: [
    /*
       showArrow
       colorType
       */
    {
      source: '1',
      target: '2',
      label: '兄弟',
      properties: { desc: '结拜' },
    },
    { source: '1', target: '3', label: '兄弟' },
    {
      source: '3',
      target: '2',
      label: '二哥',
      weight: 2,
      properties: { other: 'other prop' },
    },
    { source: '4', target: '1', label: '父' },
    { source: '1', target: '4', label: '子' },
    { source: '2', target: '4', label: '少主' },
  ],
};
